package com.property;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class main {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");

        User user= (User) context.getBean("user3");
        user.test();
//        Book book= (Book) context.getBean("book");
//        book.test();
    }
}
